package moc.zard.xg.Repository;

import moc.zard.xg.pojo.Person;
import moc.zard.xg.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface IUserD extends JpaRepository<User, Integer>, JpaSpecificationExecutor<User> {

    List<User> findAllByUsernameEquals(String username);

    List<User> findAllByUsernameEqualsAndPasswordEquals(String username,String password);

}
